package com.example.com.skills_utf8;

import view._CustomViewUseScroller;
import android.app.Fragment;
import android.app.usage.UsageEvents.Event;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.VelocityTracker;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.View.OnTouchListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;


 
public class _58_3Fragment extends Fragment{
	
	private Button btn_1;
	private Button btn_2;

	private _CustomViewUseScroller layout_view;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		
		View view = inflater.inflate(R.layout.fragment_58_3, null);
		
		layout_view = (_CustomViewUseScroller)view.findViewById(R.id.layout_view);
		
		btn_1 = (Button)view.findViewById(R.id.btn_1);
		btn_2 = (Button)view.findViewById(R.id.btn_2);
  		
		btn_1.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				layout_view.startMovePre();
			}
		});
		
		btn_2.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				layout_view.startMoveNext();
			}
		});
		
		
		
		return view;
		
	}
	
	
	
	
}
